//package com.train.mgr.config.thread;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
//
//import java.util.concurrent.Executor;
//import java.util.concurrent.ThreadPoolExecutor;
//
//@Configuration
//public class AsyncAudioConfig {
//
//    @Bean("audioEvalExecutor")
//    public Executor audioEvalExecutor() {
//        ThreadPoolTaskExecutor exec = new ThreadPoolTaskExecutor();
//        exec.setCorePoolSize(5);
//        exec.setMaxPoolSize(10);
//        exec.setQueueCapacity(20);
//        exec.setThreadNamePrefix("audio-eval-");
//        exec.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
//        exec.initialize();
//        return exec;
//    }
//}